<include file="Public:header"/>
<a href="{:U('/Admin/Vote/')}">返回</a>
<div class="clearfix"></div>
<div class="span4">
    <table class="table table-striped">
        <tr>
            <td>Email</td>
            <td>{$v.email}</td>
        </tr>
        <tr>
            <td>标题</td>
            <td>{$v.title}</td>
        </tr>
        <tr>
            <td>类型</td>
            <td>{$v.type}</td>
        </tr>
        <tr>
            <td>等级</td>
            <td>{$v.level}</td>
        </tr>
        <tr>
            <td>选择类型</td>
            <td>{$v.choose}</td>
        </tr>
        <tr>
            <td>最少选择</td>
            <td>{$v.vote_min}</td>
        </tr>
        <tr>
            <td>最多选择</td>
            <td>{$v.vote_max}</td>
        </tr>
        <tr>
            <td>投票数</td>
            <td>{$v.votes}</td>
        </tr>
        <tr>
            <td>点击数</td>
            <td>{$v.hits}</td>
        </tr>
        <tr>
            <td>开始时间</td>
            <td>{$v.start_time}</td>
        </tr>
        <tr>
            <td>结束时间</td>
            <td>{$v.end_time}</td>
        </tr>
        <tr>
            <td>链接到</td>
            <td>{$v.link_to}</td>
        </tr>
        <tr>
            <td>链接地址</td>
            <td>
                <a href="{$v.link_url}">{$v.link_url}</a>
            </td>
        </tr>
        <tr>
            <td>内容</td>
            <td>{$v.content}</td>
        </tr>
    </table>
</div>
<div class="span6">
    <img src="{$v.image_url}">
</div>
<div class="clearfix"></div>
<div class="row">
    <if condition="$v['type'] eq 1">
        <div class="span3">
            <a href="{:U('push')}/id/{$v.itemid}" class="btn btn-primary">邀请投票人</a>
        </div>
    </if>
</div>
<div class="row">
    <notempty name="vrs">
        <table class="table table-striped">
            <tr>
                <td>#</td>
                <td>Email</td>
                <td>IP</td>
                <td>选项</td>
                <td>投票时间</td>
                <td>备注</td>
            </tr>
            <foreach name="vrs" item="vr">
                <tr>
                    <td>{$vr.rid}</td>
                    <td>{$vr.email}</td>
                    <td>{$vr.ip}</td>
                    <td>{$vr.votes}</td>
                    <td>{$vr.vote_time|date='Y.m.d',###}</td>
                    <td>{$vr.note}</td>
                </tr>
            </foreach>
            <tr>
                <td colspan="6">{$page}</td>
            </tr>
        </table>
    </notempty>
</div>
<include file="Public:footer"/>